package p270jp.pxv.android.fragment;

import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.appcompat.app.AlertDialog;
import p089d.C2419a;
import p216hn.DefaultConstructorMarker;
import p270jp.pxv.android.R;
import p270jp.pxv.android.fragment.LogoutDialogFragment;
import p325m0.MutabilityOwnership;
import p547uh.DialogInterface$OnClickListenerC6422d5;
import p547uh.DialogInterface$OnClickListenerC6433e5;
import p547uh.Hilt_LogoutDialogFragment;
import p603wm.Tuples;

/* compiled from: LogoutDialogFragment.kt */
/* renamed from: jp.pxv.android.fragment.LogoutDialogFragment */
/* loaded from: classes2.dex */
public final class LogoutDialogFragment extends Hilt_LogoutDialogFragment {

    /* renamed from: f */
    public static final /* synthetic */ int f19019f;

    /* compiled from: LogoutDialogFragment.kt */
    /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select */
    /* loaded from: classes2.dex */
    public static abstract class Select implements Parcelable {

        /* compiled from: LogoutDialogFragment.kt */
        /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select$Cancel */
        /* loaded from: classes2.dex */
        public static final class Cancel extends Select {

            /* renamed from: a */
            public static final Cancel f19020a = new Cancel();
            public static final Parcelable.Creator<Cancel> CREATOR = new C4229a();

            /* compiled from: LogoutDialogFragment.kt */
            /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select$Cancel$a */
            /* loaded from: classes2.dex */
            public static final class C4229a implements Parcelable.Creator<Cancel> {
                @Override // android.os.Parcelable.Creator
                public Cancel createFromParcel(Parcel parcel) {
                    MutabilityOwnership.m3745m(parcel, "parcel");
                    parcel.readInt();
                    return Cancel.f19020a;
                }

                @Override // android.os.Parcelable.Creator
                public Cancel[] newArray(int i) {
                    return new Cancel[i];
                }
            }

            public Cancel() {
                super(null);
            }

            @Override // android.os.Parcelable
            public int describeContents() {
                return 0;
            }

            @Override // android.os.Parcelable
            public void writeToParcel(Parcel parcel, int i) {
                MutabilityOwnership.m3745m(parcel, "out");
                parcel.writeInt(1);
            }
        }

        /* compiled from: LogoutDialogFragment.kt */
        /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select$EditAccount */
        /* loaded from: classes2.dex */
        public static final class EditAccount extends Select {

            /* renamed from: a */
            public static final EditAccount f19021a = new EditAccount();
            public static final Parcelable.Creator<EditAccount> CREATOR = new C4230a();

            /* compiled from: LogoutDialogFragment.kt */
            /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select$EditAccount$a */
            /* loaded from: classes2.dex */
            public static final class C4230a implements Parcelable.Creator<EditAccount> {
                @Override // android.os.Parcelable.Creator
                public EditAccount createFromParcel(Parcel parcel) {
                    MutabilityOwnership.m3745m(parcel, "parcel");
                    parcel.readInt();
                    return EditAccount.f19021a;
                }

                @Override // android.os.Parcelable.Creator
                public EditAccount[] newArray(int i) {
                    return new EditAccount[i];
                }
            }

            public EditAccount() {
                super(null);
            }

            @Override // android.os.Parcelable
            public int describeContents() {
                return 0;
            }

            @Override // android.os.Parcelable
            public void writeToParcel(Parcel parcel, int i) {
                MutabilityOwnership.m3745m(parcel, "out");
                parcel.writeInt(1);
            }
        }

        /* compiled from: LogoutDialogFragment.kt */
        /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select$Logout */
        /* loaded from: classes2.dex */
        public static final class Logout extends Select {

            /* renamed from: a */
            public static final Logout f19022a = new Logout();
            public static final Parcelable.Creator<Logout> CREATOR = new C4231a();

            /* compiled from: LogoutDialogFragment.kt */
            /* renamed from: jp.pxv.android.fragment.LogoutDialogFragment$Select$Logout$a */
            /* loaded from: classes2.dex */
            public static final class C4231a implements Parcelable.Creator<Logout> {
                @Override // android.os.Parcelable.Creator
                public Logout createFromParcel(Parcel parcel) {
                    MutabilityOwnership.m3745m(parcel, "parcel");
                    parcel.readInt();
                    return Logout.f19022a;
                }

                @Override // android.os.Parcelable.Creator
                public Logout[] newArray(int i) {
                    return new Logout[i];
                }
            }

            public Logout() {
                super(null);
            }

            @Override // android.os.Parcelable
            public int describeContents() {
                return 0;
            }

            @Override // android.os.Parcelable
            public void writeToParcel(Parcel parcel, int i) {
                MutabilityOwnership.m3745m(parcel, "out");
                parcel.writeInt(1);
            }
        }

        public Select() {
        }

        public Select(DefaultConstructorMarker eVar) {
        }
    }

    /* renamed from: f */
    public final void m4617f(Select select) {
        getParentFragmentManager().m11253c0("logout_dialog_fragment_result_key", C2419a.m7858f(new Tuples("logout_dialog_fragment_result_key_select", select)));
    }

    @Override // androidx.fragment.app.DialogFragment
    public Dialog onCreateDialog(Bundle bundle) {
        AlertDialog.C0305a aVar = new AlertDialog.C0305a(requireContext(), 2131886902);
        aVar.m12006h(R.string.settings_logout_confirm_title);
        aVar.m12012b(R.string.settings_logout_confirm_details);
        aVar.m12008f(R.string.logout, new DialogInterface.OnClickListener() { // from class: uh.f5
            @Override // android.content.DialogInterface.OnClickListener
            public final void onClick(DialogInterface dialogInterface, int i) {
                LogoutDialogFragment logoutDialogFragment = LogoutDialogFragment.this;
                int i2 = LogoutDialogFragment.f19019f;
                MutabilityOwnership.m3745m(logoutDialogFragment, "this$0");
                logoutDialogFragment.m4617f(LogoutDialogFragment.Select.Logout.f19022a);
                logoutDialogFragment.dismiss();
            }
        });
        aVar.m12011c(R.string.settings_edit_account, new DialogInterface$OnClickListenerC6433e5(this, 0));
        aVar.m12009e(R.string.common_cancel, new DialogInterface$OnClickListenerC6422d5(this, 0));
        return aVar.m12005i();
    }
}
